﻿using System.Collections.Generic;
using Microsoft.VisualStudio.TemplateWizard;
using EnvDTE;

namespace Yama.TemplateWizard
{
    public class ProjectWizard : IWizard
    {
        internal static string SolutionName = string.Empty;
        internal static _DTE Dte;
        internal static string DotNetVersion = "v3.5";

        #region Implementation of IWizard

        public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
        {
            replacementsDictionary["$solutionname$"] = SolutionName;
            replacementsDictionary["$dotnetversion$"] = DotNetVersion;
        }

        public virtual void ProjectFinishedGenerating(Project project)
        {
        }

        public void ProjectItemFinishedGenerating(ProjectItem projectItem)
        {
        }

        public bool ShouldAddProjectItem(string filePath)
        {
            return true;
        }

        public void RunFinished()
        {
        }

        public void BeforeOpeningFile(ProjectItem projectItem)
        {
            
        }

        #endregion
    }
}
